/**
 * 
 */
package com.gragra.wilsHandler;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
/**
 * @author Christoph Teichmann
 * 24.09.2013
 */
public class CompareLengthFull
{
	/**
	 * @param args
	 */
	public static void main(String[] args) throws IOException
	{
		BufferedReader golds = new BufferedReader(new FileReader(args[0]));
		BufferedReader others = new BufferedReader(new FileReader(args[1]));
		String line;
		while((line = others.readLine()) != null)
		{
			String s = golds.readLine();
			String[] p = line.split("\\s+");
			String[] m = s.split("\\s+");
			if(p.length!=m.length)
			{
				golds.close();
				others.close();
				System.out.println(line);
				System.out.println(s);
				throw new IllegalArgumentException("lengths do not match");
			}
		}
		golds.close();
		others.close();
	}
}